import React from "react";
import reactDOM from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import { renderRoutes } from 'react-router-config'
import routers from '../share/routes'
import { Provider } from 'react-redux'
import store from './createStore'

reactDOM.hydrate(
  <Provider store={store}>
    <BrowserRouter>
      {renderRoutes(routers)}
    </BrowserRouter>
  </Provider>,
document.getElementById('root'))